From: Georges Basile Stavracas Neto Date: Fri, 5 Jun 2020 02:24:20 +0000 (-0300) Subject: appDisplay: Hide folder icon when dialog is open X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~283 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3d6add68c73c254e120f32d5887b075f5ccfca9b;p=gnome-shell.git appDisplay: Hide folder icon when dialog is open In such a way that gives the illusion of the icon becoming the dialog itself. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1301 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index c7636c922..d8e897d5c 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1391,6 +1391,18 @@ var FolderIcon = GObject.registerClass({ this._parentView); this._parentView.addFolderDialog(this._dialog); this._dialog.connect('open-state-changed', (popup, isOpen) => { + const duration = FOLDER_DIALOG_ANIMATION_TIME / 2; + const mode = isOpen + ? Clutter.AnimationMode.EASE_OUT_QUAD + : Clutter.AnimationMode.EASE_IN_QUAD; + + this.ease({ + opacity: isOpen ? 0 : 255, + duration, + mode, + delay: isOpen ? 0 : FOLDER_DIALOG_ANIMATION_TIME - duration, + }); + if (!isOpen) this.checked = false; });